package com.heima.config;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

//SpringConfig：取代了applicationContext.xml文件
//标记了该注解的类，就是一个Spring的配置文件类
@Configuration
//读取属性文件
@PropertySource("classpath:jdbc.properties")
//开启注释包扫描
@ComponentScan("com.heima")
//导入其他配置类
@Import(JDBCConfig.class)
public class SpringConfig {

}
